(function () {
    window.StaticResouces = class StaticResouces {
        constructor () {
            this.images = new Object()
        }
        loadImages (file,callback) {
            let total = imageList.image.length
            console.log(imageList.image)
            let already = 0
            const _this = this
            imageList.image.forEach(item => {
                const image = new Image()
                image.src=item.src
                image.onload = function () {
                    already++
                    _this.images[item.name] = image
                    callback(already, total, _this.images)
                }
            })
        }
    }
})()